public class SolutionLCP1 {
    public int game(int[] guess, int[] answer) {
        int ans=0;
        for (int i=0;i<guess.length;i++){
            if (guess[i]==answer[i]){
                ans++;
            }
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new SolutionLCP1().game(new int[]{1,2,3},new int[]{1,2,3}));
    }
}
